package com.shiroha.video.service;

import com.mybatisflex.core.service.IService;
import com.shiroha.video.pojo.Like;

import java.util.UUID;

public interface ILikeService extends IService<Like> {

    /**
     * 点赞作品或评论
     * @param userId 请求者ID
     * @param workId 作品ID
     * @param commentId 评论ID
     * @return 点赞是否成功
     */
    boolean addLike(UUID userId, Long workId, Long commentId);

    /**
     * 取消点赞
     * @param userId 请求者ID
     * @param workId 作品ID
     * @param commentId 评论ID
     * @return 取消点赞是否成功
     */
    boolean removeLike(UUID userId, Long workId, Long commentId);
}
